import axios from 'axios'

const getHomepage = () => {
  return axios.get('/homepage/main/v1005?platform=m')
}
//  用于请求右侧列表详情
//  参数 catId 是左侧列表栏的每个目录的id
const getListDetail = () => {
  return axios.post('/mtop/mf/cat/detail', [{}, { catId: '5d3912da9bbe3147969a4ad1' }])
}
//  用于请求左侧列表栏
const getList = () => {
  return axios.post('/mtop/mf/cat/list', [{}, {}])
}

export default {
  getHomepage,
  getListDetail,
  getList
}
